package com.usain.mapper;

import com.usain.pojo.Teacher;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.spring.annotation.MapperScan;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface TeacherMapper extends Mapper<Teacher> {

    @Select("SELECT * FROM teacher WHERE id=#{id}")
    Teacher findById(Integer id);
}
